package com.preskool.service;

import com.preskool.dto.SubjectVo;
import com.preskool.po.Subjects;

import java.util.List;

/**
 * @Author kennyzzz
 * @Data 2021/1/11 4:21
 */
public interface SubjectsService {

    List<Subjects> findAllSubject();

    Subjects findSubjectByName(String subjectName);

    List<SubjectVo> findSubjectsByPage(Integer currentPage, Integer pageSize, String sortName);

    int addSubject(Subjects subjects);

    int deleteSubjectBySubid(Integer subid);

    int updateSubject(Subjects subjects);
}
